#include "Material.h"


Material::Material(void)
{
}


Material::~Material(void)
{
}

void Material::Initialize(HWND WindowHandle, HINSTANCE hInstance, ID3D11Device* Device, ID3D11DeviceContext* DeviceContext)
{
	D3DDevice = Device;
	D3DDeviceContext = DeviceContext;
	DiffuseTextures.Initialize(0, 0, D3DDevice, D3DDeviceContext);

	mhasColor = false;
}
void Material::Update(int DeltaTime)
{

}
void Material::Shutdown()
{

}

void Material::AddDiffuseTexture(string Path)
{
	DiffuseTextures.AddTexture(Path);
}

void Material::SetColor(XMFLOAT4 Color)
{
	mColor = Color;
	mhasColor = true;
}

bool Material::hasColor()
{
	return mhasColor;
}

XMFLOAT4 Material::GetColor()
{
	return mColor;
}
